package cn.wolfcode.luowowo.ticket.mapper;

import cn.wolfcode.luowowo.ticket.domain.Ticket;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TicketMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Ticket record);

    Ticket selectByPrimaryKey(Long id);

    List<Ticket> selectTop4();

    int updateByPrimaryKey(Ticket record);

    List<Ticket> selectByDestId(Long destId);

    List<Ticket> selectAll();

    List<Ticket> selectByDestIdAndSubjectId(@Param("ajaxDestId") Long ajaxDestId, @Param("ajaxSubjectId") Long ajaxSubjectId);
}